Integrand size = 45, antiderivative size = 172 \[ \int \frac {(a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {5}{2}}(c+d x)} \, dx=\frac {2 a^{3/2} C \text {arcsinh}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d}+\frac {2 a^2 (12 A+20 B+15 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a (3 A+5 B) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{15 d \sqrt {\sec (c+d x)}}+\frac {2 A (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)} \]
[Out]
Time = 0.61 (sec) , antiderivative size = 172, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {4171, 4102, 4100, 3886, 221} \[ \int \frac {(a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {5}{2}}(c+d x)} \, dx=\frac {2 a^{3/2} C \text {arcsinh}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{d}+\frac {2 a^2 (12 A+20 B+15 C) \sin (c+d x) \sqrt {\sec (c+d x)}}{15 d \sqrt {a \sec (c+d x)+a}}+\frac {2 a (3 A+5 B) \sin (c+d x) \sqrt {a \sec (c+d x)+a}}{15 d \sqrt {\sec (c+d x)}}+\frac {2 A \sin (c+d x) (a \sec (c+d x)+a)^{3/2}}{5 d \sec ^{\frac {3}{2}}(c+d x)} \]
[In]
[Out]
Rule 221
Rule 3886
Rule 4100
Rule 4102
Rule 4171
Rubi steps \begin{align*} \text {integral}& = \frac {2 A (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 \int \frac {(a+a \sec (c+d x))^{3/2} \left (\frac {1}{2} a (3 A+5 B)+\frac {5}{2} a C \sec (c+d x)\right )}{\sec ^{\frac {3}{2}}(c+d x)} \, dx}{5 a} \\ & = \frac {2 a (3 A+5 B) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{15 d \sqrt {\sec (c+d x)}}+\frac {2 A (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {4 \int \frac {\sqrt {a+a \sec (c+d x)} \left (\frac {1}{4} a^2 (12 A+20 B+15 C)+\frac {15}{4} a^2 C \sec (c+d x)\right )}{\sqrt {\sec (c+d x)}} \, dx}{15 a} \\ & = \frac {2 a^2 (12 A+20 B+15 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a (3 A+5 B) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{15 d \sqrt {\sec (c+d x)}}+\frac {2 A (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+(a C) \int \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)} \, dx \\ & = \frac {2 a^2 (12 A+20 B+15 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a (3 A+5 B) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{15 d \sqrt {\sec (c+d x)}}+\frac {2 A (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}-\frac {(2 a C) \text {Subst}\left (\int \frac {1}{\sqrt {1+\frac {x^2}{a}}} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d} \\ & = \frac {2 a^{3/2} C \text {arcsinh}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d}+\frac {2 a^2 (12 A+20 B+15 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a (3 A+5 B) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{15 d \sqrt {\sec (c+d x)}}+\frac {2 A (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)} \\ \end{align*}
Time = 6.52 (sec) , antiderivative size = 126, normalized size of antiderivative = 0.73 \[ \int \frac {(a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {5}{2}}(c+d x)} \, dx=\frac {a^2 \left ((39 A+50 B+30 C+2 (9 A+5 B) \cos (c+d x)+3 A \cos (2 (c+d x))) \sqrt {-((-1+\sec (c+d x)) \sec (c+d x))} \sin (c+d x)+30 C \arcsin \left (\sqrt {1-\sec (c+d x)}\right ) \tan (c+d x)\right )}{15 d \sqrt {1-\sec (c+d x)} \sqrt {a (1+\sec (c+d x))}} \]
[In]
[Out]
Time = 1.92 (sec) , antiderivative size = 280, normalized size of antiderivative = 1.63
method | result | size |
parts | \(\frac {2 A a \sqrt {a \left (1+\sec \left (d x +c \right )\right )}\, \left (\sin \left (d x +c \right )+3 \tan \left (d x +c \right )+6 \sec \left (d x +c \right ) \tan \left (d x +c \right )\right )}{5 d \left (\cos \left (d x +c \right )+1\right ) \sec \left (d x +c \right )^{\frac {5}{2}}}+\frac {2 B a \sqrt {a \left (1+\sec \left (d x +c \right )\right )}\, \left (\sin \left (d x +c \right )+5 \tan \left (d x +c \right )\right )}{3 d \left (\cos \left (d x +c \right )+1\right ) \sec \left (d x +c \right )^{\frac {3}{2}}}-\frac {C a \sqrt {a \left (1+\sec \left (d x +c \right )\right )}\, \left (-\arctan \left (\frac {-\cos \left (d x +c \right )+\sin \left (d x +c \right )-1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}-\sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\, \arctan \left (\frac {\cos \left (d x +c \right )+\sin \left (d x +c \right )+1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right )+2 \cot \left (d x +c \right )-2 \csc \left (d x +c \right )\right )}{d \sqrt {\sec \left (d x +c \right )}}\) | \(280\) |
default | \(\frac {a \left (6 A \cos \left (d x +c \right )^{2} \sin \left (d x +c \right )+15 C \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\, \arctan \left (\frac {\cos \left (d x +c \right )+\sin \left (d x +c \right )+1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right ) \cos \left (d x +c \right )+15 C \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\, \arctan \left (\frac {-\cos \left (d x +c \right )+\sin \left (d x +c \right )-1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right ) \cos \left (d x +c \right )+18 A \cos \left (d x +c \right ) \sin \left (d x +c \right )+10 B \cos \left (d x +c \right ) \sin \left (d x +c \right )+15 C \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\, \arctan \left (\frac {\cos \left (d x +c \right )+\sin \left (d x +c \right )+1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right )+15 C \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}\, \arctan \left (\frac {-\cos \left (d x +c \right )+\sin \left (d x +c \right )-1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right )+36 A \sin \left (d x +c \right )+50 B \sin \left (d x +c \right )+30 C \sin \left (d x +c \right )\right ) \sqrt {a \left (1+\sec \left (d x +c \right )\right )}\, \sqrt {\sec \left (d x +c \right )}\, \cos \left (d x +c \right )}{15 d \left (\cos \left (d x +c \right )+1\right )}\) | \(366\) |
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 410, normalized size of antiderivative = 2.38 \[ \int \frac {(a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {5}{2}}(c+d x)} \, dx=\left [\frac {15 \, {\left (C a \cos \left (d x + c\right ) + C a\right )} \sqrt {a} \log \left (\frac {a \cos \left (d x + c\right )^{3} - 7 \, a \cos \left (d x + c\right )^{2} - \frac {4 \, {\left (\cos \left (d x + c\right )^{2} - 2 \, \cos \left (d x + c\right )\right )} \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}} + 8 \, a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2}}\right ) + \frac {4 \, {\left (3 \, A a \cos \left (d x + c\right )^{3} + {\left (9 \, A + 5 \, B\right )} a \cos \left (d x + c\right )^{2} + {\left (18 \, A + 25 \, B + 15 \, C\right )} a \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{30 \, {\left (d \cos \left (d x + c\right ) + d\right )}}, \frac {15 \, {\left (C a \cos \left (d x + c\right ) + C a\right )} \sqrt {-a} \arctan \left (\frac {2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{a \cos \left (d x + c\right )^{2} - a \cos \left (d x + c\right ) - 2 \, a}\right ) + \frac {2 \, {\left (3 \, A a \cos \left (d x + c\right )^{3} + {\left (9 \, A + 5 \, B\right )} a \cos \left (d x + c\right )^{2} + {\left (18 \, A + 25 \, B + 15 \, C\right )} a \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{15 \, {\left (d \cos \left (d x + c\right ) + d\right )}}\right ] \]
[In]
[Out]
Timed out. \[ \int \frac {(a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {5}{2}}(c+d x)} \, dx=\text {Timed out} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 522 vs. \(2 (148) = 296\).
Time = 0.52 (sec) , antiderivative size = 522, normalized size of antiderivative = 3.03 \[ \int \frac {(a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {5}{2}}(c+d x)} \, dx=\frac {3 \, \sqrt {2} {\left (20 \, a \cos \left (\frac {4}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right ) \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) + 5 \, a \cos \left (\frac {2}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right ) \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) - 20 \, a \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) \sin \left (\frac {4}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right ) - 5 \, a \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) \sin \left (\frac {2}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right ) + 2 \, a \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) + 5 \, a \sin \left (\frac {3}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right ) + 20 \, a \sin \left (\frac {1}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right )\right )} A \sqrt {a} + 15 \, \sqrt {2} {\left (\sqrt {2} a \log \left (2 \, \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2 \, \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2 \, \sqrt {2} \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2 \, \sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2\right ) - \sqrt {2} a \log \left (2 \, \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2 \, \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2 \, \sqrt {2} \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 2 \, \sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2\right ) + \sqrt {2} a \log \left (2 \, \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2 \, \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 2 \, \sqrt {2} \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2 \, \sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2\right ) - \sqrt {2} a \log \left (2 \, \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2 \, \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 2 \, \sqrt {2} \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 2 \, \sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2\right ) + 8 \, a \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} C \sqrt {a} + 20 \, {\left (\sqrt {2} a \sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ) + 9 \, \sqrt {2} a \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} B \sqrt {a}}{60 \, d} \]
[In]
[Out]
\[ \int \frac {(a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {5}{2}}(c+d x)} \, dx=\int { \frac {{\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A\right )} {\left (a \sec \left (d x + c\right ) + a\right )}^{\frac {3}{2}}}{\sec \left (d x + c\right )^{\frac {5}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {5}{2}}(c+d x)} \, dx=\int \frac {{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{3/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )}{{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{5/2}} \,d x \]
[In]
[Out]